always @ (posedge clk) begin

	if nrst = ‚äò0‚äô begin
		hcount <= 0;
		hblank <= ‚äò1‚äô;
	end
	else
		if hcount > 2517 and hcount<3177 begin
			hblank <= ‚äò0‚äô;
		else
			hblank <= ‚äò1‚äô;
		end if
		if hcount < 3177 then
			hcount <= hcount + 1;
		else
			hcount <= 0;
		end if
	end if
end

always @ (posedge vclk) begin
	if nrst = ‚äò0‚äô begin
		vcount <= 0;
		vblank<=‚äô1‚äôl
	end
	else
		if vcount>15250 and vcount <16784 begin
			vblank <= ‚äò0‚äô;
		else
			vblank <= ‚äò1‚äô;
		end if
		if vcount > 16784 begin
			vblank <= 0;
		else
			vcount <= vcount + 1;
		end if
	end
end